﻿@using WebReport
@using Microsoft.Extensions.Options
@inject IOptions<AppSettings> AppSettings

<script type="text/javascript" src="~/lib/jquery/dist/jquery.min.js?v=@DateTime.Now.Ticks" asp-append-version="true"></script>
<script type="text/javascript" src="~/lib/echarts/echarts.js?v=@DateTime.Now.Ticks" asp-append-version="true"></script>
<script type="text/javascript" src="~/lib/echarts/echarts-auto-tooltip.js?v=@DateTime.Now.Ticks" asp-append-version="true"></script>

@*
<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/lib/echarts/echarts.js"></script>
<script src="~/lib/echarts/echarts.min.js"></script>
<script src="~/js/echarts.js"></script>
<script src="~/js/echarts.min.js"></script>
*@


<script src="~/js/crypto-js.js?v=@DateTime.Now.Ticks" asp-append-version="true"></script>
<script src="~/js/report.js?v=@DateTime.Now.Ticks" asp-append-version="true"></script>
<script src="~/js/aes.js?v=@DateTime.Now.Ticks" asp-append-version="true"></script>
<script type="text/javascript" href="?v=@DateTime.Now.Ticks">
    const api = "@AppSettings.Value.WebAPI";
    const emsapi = "@AppSettings.Value.EmsAPI";
    const ipAddress = window.location.hostname;
    const port = window.location.port;
    const protocol = window.location.protocol;
    let url = `${protocol}//${ipAddress}`;
    if (port) {
        url += `:${port}`;
    }
    function setLanguageCookie(culture) {
        document.cookie = `culture=${culture}; path=/`;
        //window.parent.location.reload();
        window.open(url, "_top");
    }
    $('html').on('contextmenu', function (event) {
        event.preventDefault();
    });
    $(document).on('keydown', function (event) {
        if (event.keyCode === 123) {
            event.preventDefault();
        }
        if (event.ctrlKey && event.shiftKey && event.keyCode === 73) {
            event.preventDefault();
        }
        if (event.ctrlKey && event.shiftKey && event.keyCode === 74) {
            event.preventDefault();
        }
        if (event.ctrlKey && event.keyCode === 85) {
            event.preventDefault();
        }
    });
</script>